import React, { Component } from 'react'
import Navbar from './component/Navbar'
import { BrowserRouter as Router, Route , Routes} from "react-router-dom";
import Home from './component/Home'
import About from './component/About'
import Contact from './component/Contact'
import './App.css'

class App extends Component {
  render() {
    return (
      <Router>
        <div className="App">
          <Navbar />
          <Routes>
            <Route path='/' element={<Home/>} />
            <Route path='/about' element={<About/>} />
            <Route path='/contact' element={<Contact/>} />
          </Routes>
        </div>
      </Router>

    );
  }

}

export default App;